-- GENERATED SPELL FOR [Blight Slinger] --


function spell0_31526(pUnit, Event) --@Blight Barrel,n/a--
pUnit:FullCastSpellOnTarget(59284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31526', 1500, 1)
end

function Sorts_31526(pUnit, Event)
local choix_sorts_31526 = math.random(0, 0)
if choix_sorts_31526 == 0 then
pUnit:RegisterEvent('spell0_31526', 1, 1)
end
end

function mob31526_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31526', math.random(1500, 3000), 1)
end

function mob31526_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31526_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31526_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31526, 1, 'mob31526_Action')
RegisterUnitEvent(31526, 2, 'mob31526_Leave')
RegisterUnitEvent(31526, 3, 'mob31526_Kill')
RegisterUnitEvent(31526, 4, 'mob31526_Die')
